//
//  SFDemoViewController.swift
//  SFWeiboPro
//
//  Created by happy on 2017/9/6.
//  Copyright © 2017年 happy. All rights reserved.
//

import UIKit

class SFDemoViewController: SFBaseViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        title = "第\(navigationController?.childViewControllers.count ?? 0)页"
       
    }
    
    @objc func showNext() {
        print(#function)
        
        let vc = SFDemoViewController()
        
        navigationController?.pushViewController(vc, animated: true)
        
    }

}


extension SFDemoViewController {
    
    override func setupUI() {
        super.setupUI()
        
        navItem.rightBarButtonItem = UIBarButtonItem(title: "下一步", target: self, action: #selector(showNext))
    }
    
}
